package com.zqy.common.util;

import java.util.regex.Pattern;


/**
 * 校验
 */
public class RegexUtils {

    public static boolean checkPhone(String phone) {
        String regexGH = "^(\\(\\d{3,4}\\)|\\d{3,4}-|\\s)?\\d{8}$";
        String regexSJ = "^(86)*0*\\d{11}";
        return Pattern.matches(regexGH, phone) || Pattern.matches(regexSJ, phone);
    }



}